package kr.hkit.powerjava.chapter09.Programming;

public class PgMain {

	public static void main(String[] args) {
		Dog dog1 = new Dog("일호", 2);
		Dog dog2 = new Dog("이호", "포메라이언", 1);

		System.out.println(dog1);
		System.out.println(dog2);

		Plane pl1 = new Plane("에어버스", "A380", 500);
		Plane pl2 = new Plane("G888", 520);

		System.out.print("현째까지 생성된 비행기의 개수는" + Plane.getPlanes() + "대 입니다.");
		System.out.println();

		Plane pl3 = new Plane("A999");
		Plane pl4 = new Plane(300);

		System.out.println(pl1);
		System.out.println(pl2);
		System.out.println(pl3);
		System.out.println(pl4);
		System.out.print("현째까지 생성된 비행기의 개수는" + Plane.getPlanes() + "대 입니다.");
		System.out.println();

		pl1.setMaxPassenger(100);
		System.out.println(pl1);
		System.out.print("현째까지 생성된 비행기의 개수는" + Plane.getPlanes() + "대 입니다.");
		System.out.println();

		Box box = new Box(3, 4, 2);
		System.out.println(box);
		
		box.setFullbox(true);
		System.out.println(box);
		
		Movie movie1 = new Movie("PowerJava", "simsim", "hkit");
		System.out.println(movie1);
		
		Movie movie2 = new Movie();
		System.out.println(movie2);

		BankAccount acc1 = new BankAccount();
		System.out.println(acc1);
		
		BankAccount acc2 = new BankAccount("장주연", 123456, 1000000);
		System.out.println(acc2);
		
		BankAccount acc3 = new BankAccount("누구거", 232312, 2000000000, 0.02);
		System.out.println(acc3);
	}
}
